/* 增强动画效果 */
@keyframes float-3d {
  0%, 100% { transform: translateY(0) translateZ(0) rotateX(0) rotateY(0); }
  25% { transform: translateY(-15px) translateZ(10px) rotateX(5deg) rotateY(5deg); }
  50% { transform: translateY(-5px) translateZ(20px) rotateX(-5deg) rotateY(10deg); }
  75% { transform: translateY(-10px) translateZ(5px) rotateX(10deg) rotateY(-5deg); }
}

@keyframes neon-pulse {
  0%, 100% { 
    text-shadow: 
      0 0 5px rgba(0, 132, 255, 0.5),
      0 0 10px rgba(0, 132, 255, 0.5),
      0 0 20px rgba(0, 132, 255, 0.5);
  }
  50% { 
    text-shadow: 
      0 0 10px rgba(0, 132, 255, 0.8),
      0 0 20px rgba(0, 132, 255, 0.8),
      0 0 30px rgba(0, 132, 255, 0.8);
  }
}

@keyframes border-glow {
  0%, 100% { 
    box-shadow: 
      0 0 5px rgba(0, 132, 255, 0.5),
      0 0 10px rgba(0, 132, 255, 0.3);
    border-color: rgba(0, 132, 255, 0.5);
  }
  50% { 
    box-shadow: 
      0 0 10px rgba(0, 132, 255, 0.8),
      0 0 20px rgba(0, 132, 255, 0.5);
    border-color: rgba(0, 132, 255, 0.8);
  }
}

/* AI工具箱模块样式 - 两排布局 */
.ai-toolbox {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.ai-toolbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: float-background 20s ease-in-out infinite;
}

@keyframes float-background {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.ai-toolbox .section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.ai-toolbox h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ai-toolbox .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

.toolbox-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.toolbox-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.toolbox-row:last-child {
    margin-bottom: 0;
}

.toolbox-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
}

.toolbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.toolbox-card:hover::before {
    left: 100%;
}

.toolbox-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.toolbox-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.toolbox-card:hover .toolbox-logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.toolbox-logo span {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.toolbox-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.toolbox-card:hover h3 {
    color: #1a202c;
}

/* 为不同的AI工具添加特色颜色 */
.deepseek-logo { background: linear-gradient(135deg, #007AFF, #0051D5); }
.kimi-logo { background: linear-gradient(135deg, #00C9A7, #00A085); }
.doubao-logo { background: linear-gradient(135deg, #FF6B35, #E55A2B); }
.jimeng-logo { background: linear-gradient(135deg, #FF4758, #E63946); }
.chatgpt-logo { background: linear-gradient(135deg, #10A37F, #0D8A6B); }
.claude-logo { background: linear-gradient(135deg, #D97A4A, #C4693D); }
.wenxin-logo { background: linear-gradient(135deg, #3385FF, #2970E6); }
.tongyi-logo { background: linear-gradient(135deg, #FF6500, #E55A00); }

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-toolbox {
        padding: 60px 0;
    }
    
    .ai-toolbox h2 {
        font-size: 2rem;
    }
    
    .toolbox-grid {
        padding: 0 15px;
    }
    
    .toolbox-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .toolbox-card {
        padding: 25px 15px;
        min-width: 150px;
        max-width: 180px;
    }
    
    .toolbox-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .toolbox-logo span {
        font-size: 20px;
    }
    
    .toolbox-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .toolbox-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .toolbox-card {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }
    
    .toolbox-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .toolbox-logo span {
        font-size: 18px;
    }
    
    .toolbox-card h3 {
        font-size: 0.95rem;
    }
}

/* 工具箱卡片的入场动画 */
.toolbox-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.toolbox-row:first-child .toolbox-card:nth-child(1) { animation-delay: 0.1s; }
.toolbox-row:first-child .toolbox-card:nth-child(2) { animation-delay: 0.2s; }
.toolbox-row:first-child .toolbox-card:nth-child(3) { animation-delay: 0.3s; }
.toolbox-row:first-child .toolbox-card:nth-child(4) { animation-delay: 0.4s; }

.toolbox-row:last-child .toolbox-card:nth-child(1) { animation-delay: 0.5s; }
.toolbox-row:last-child .toolbox-card:nth-child(2) { animation-delay: 0.6s; }
.toolbox-row:last-child .toolbox-card:nth-child(3) { animation-delay: 0.7s; }
.toolbox-row:last-child .toolbox-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}